<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<base target="_self">
    
    <title>学童批量更新</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="学童,批量,更新">
	<meta http-equiv="description" content="This is my page">
	
  </head>
  
  <body>
    <center>
    	<s:form name="frm" id="frm" method="post" action="" namespace="">
    		<jsp:include page="/jsp/outward/business/common/menuLink.jsp">
    			<jsp:param name="menuLink" value="[{'name':'批量更新'}]"/>
    			<jsp:param name="width" value="70%"/>
    		</jsp:include>
    		
    		<s:hidden id="kindergartenId" name="kindergartenId"></s:hidden>
    		<s:hidden id="childIds" name="childIds"></s:hidden>
    		
    		<table cellspacing="1" width="100%" bgcolor="#CCCCCC" cellpadding="3">
				<tr bgcolor="#FFFFFF">
					<td align="right" width="35%" class="label">
						修改班级为：
					</td>
					<td align="left" width="45%">
						<s:select name="child.cla.id" id="classId" list="classList" listKey="id" listValue="className" cssStyle="width:120px"></s:select>
					</td>
					<td width="20%" align="left">
						<input type="button" value="修改" class="btn" onclick="batchUpdateClass()"/>
					</td>
				</tr>
				<tr bgcolor="#FFFFFF">
					<td align="right" class="label">
						修改是否在读：
					</td>
					<td align="left">
						<s:select list='#{0:"否",1:"是"}' name="child.status" id="status" cssStyle="width:60px;"></s:select>
					</td>
					<td align="left">
						<input type="button" value="修改" class="btn" onclick="batchUpdateStatus()"/>
					</td>
				</tr>
			</table>
    		
    	</s:form>
    </center>
    
    <script type="text/javascript">
    $(function(){
    	$('BODY').focus();
    });
    
    function batchUpdateClass()
    {
   		showConfirm('确认修改？', function(v){
   			if(v == true)
   			{
   				var url = 'inner/common/batchUpdateClass.action';
		    	ajaxAction(url, 'post', 'frm', false, function(){
		   			var pWin = getParentWin();
		   			pWin.searchThis();
		   			window.close();
		    	});
   			}
   		});
    }

    function batchUpdateStatus()
    {
    	showConfirm('确认修改？', function(v){
   			if(v == true)
   			{
		    	var url = 'inner/common/batchUpdateStatus.action';
		    	ajaxAction(url, 'post', 'frm', false, function(){
		   			var pWin = getParentWin();
		   			pWin.searchThis();
		   			window.close();
		    	});
   			}
   		});
    }
    </script>
  </body>
</html>
